package cn.cau.dao;
import java.util.List;

import cn.cau.entity.CodeNumber;
import org.apache.ibatis.annotations.Param;

public interface CodeNumberDao {
    public List<CodeNumber> findAllRecords(String codeNumber);
    public List<CodeNumber> findAllRecord(int id);
    public String getCategoryName(int categoryId);
    public String getRuleCategoryName(int ruleCategoryId);
    public List<CodeNumber> findRecordsByCodeRuleId(int codeRuleId);
    public int findNum(int codeRuleId);
    public String getCategory(int categoryid);
    public void insertCodeNumber(CodeNumber co);

    public void updateNumber(@Param("code") String code,@Param("id") int id);
}